package com.iespring.bean.app.coupon.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;

/**
 * Auth: 杨宇健
 * Time: 2023/1/1 20:19
 * Description:
 **/
@NoArgsConstructor
@Data
public class WxCouponListVo {
    /**
     * id : 103
     * name : 日期型优惠券
     * desc : 按日期生效的优惠券
     * tag :
     * discount : 1110.0
     * min : 11110.0
     * days : 0
     * startTime : 2023-01-03 00:00:00
     * endTime : 2023-01-07 00:00:00
     */

    private Integer id;
    private String name;
    private String desc;
    private String tag;
    private BigDecimal discount;
    private BigDecimal min;
    private Short days;
    @DateTimeFormat(pattern = "yy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yy-MM-dd HH:mm:ss")
    private Date startTime;
    @DateTimeFormat(pattern = "yy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yy-MM-dd HH:mm:ss")
    private Date endTime;
}
